在Win10下用VS code 配置 clang 与mingw 编译器
Tanyongyin:
在 vscode 中还是找不到头文件
'iostream' file not foundclang(pp_file_not_found)
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++.exe 生成活动文件",
"command": "D:\\Program Files\\LLVM\\bin\\clang++.exe",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"--target=x86_64-w64-mingw",
"-Wall",
"-static-libgcc",
"-std=c++1z"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"/"
],
"pattern": {
"regexp": "^(.*):
[/code][code=cpp]
[/code][code=csharp]
[/code]
|